<html>
<head><meta charset="utf-8"><title>HIR stands for ... · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/HIR.20stands.20for.20.2E.2E.2E.html">HIR stands for ...</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="232275313"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/HIR%20stands%20for%20.../near/232275313" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/HIR.20stands.20for.20.2E.2E.2E.html#232275313">(Mar 29 2021 at 14:18)</a>:</h4>
<p>hidden intermediate representation! </p>
<p>This is semi-jokingly, but, indeed, that's probably the most important part of our hir_xxx crates -- they are invisible from hir on. </p>
<p>More seriously, I am not too thrilled about our hir terminology, for two reasons:</p>
<ul>
<li><code>hir</code> and <code>hir_xxx</code> are very different things, they should have been named differently. They sort-of-were (hir was "code_model"), but not really. </li>
<li>rust-analyzer's <code>hir</code> is not he same as rustc's one, so we'd better have different names. </li>
</ul>
<p>I wonder what's the best name for the <code>hir</code> (top level) thing?</p>



<a name="232275780"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/HIR%20stands%20for%20.../near/232275780" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edwin Cheng <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/HIR.20stands.20for.20.2E.2E.2E.html#232275780">(Mar 29 2021 at 14:21)</a>:</h4>
<p>semantic representation ?</p>



<a name="232276241"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/HIR%20stands%20for%20.../near/232276241" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/HIR.20stands.20for.20.2E.2E.2E.html#232276241">(Mar 29 2021 at 14:24)</a>:</h4>
<p><code>sr::Struct</code> or <code>sem::Struct</code> ?</p>



<a name="232276312"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/HIR%20stands%20for%20.../near/232276312" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/HIR.20stands.20for.20.2E.2E.2E.html#232276312">(Mar 29 2021 at 14:24)</a>:</h4>
<p>the <code>hir_</code> prefix is also not really accurate</p>



<a name="232276432"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/HIR%20stands%20for%20.../near/232276432" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/HIR.20stands.20for.20.2E.2E.2E.html#232276432">(Mar 29 2021 at 14:25)</a>:</h4>
<p>I guess it's fairly accurate if you look at it as "hidden"</p>



<a name="232276610"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/HIR%20stands%20for%20.../near/232276610" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edwin Cheng <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/HIR.20stands.20for.20.2E.2E.2E.html#232276610">(Mar 29 2021 at 14:26)</a>:</h4>
<p>We already have <code>ssr</code> , so I will vote for <code>sem</code> .</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>